package com.brsya.movie.model;

import com.brsya.base.base.Contents;
import com.brsya.base.bean.BaseListBean;
import com.brsya.base.bean.RankingListBean;
import com.brsya.base.net.RetrofitClient;
import com.brsya.movie.contract.RankingListContract;

import java.util.Map;

import io.reactivex.rxjava3.core.Observable;

/**
 * Created by Brsya
 * CreateDate: 2022/7/6  20:59
 * Description:
 * 排行榜列表数据层
 */
public class RankingListModel implements RankingListContract.Model {
    @Override
    public Observable<BaseListBean<RankingListBean>> getRankingList(Map<String, Object> par) {
        return RetrofitClient.getInstance().getApi().getRankingList(Contents.BASE_URL + "/find/ranking", par);
    }
}
